package com.example.yjhadmin.controller;

import com.example.yjhadmin.service.PlayerFeign;
import com.yc.yjh.entity.Players;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/yjh/admin")
public class PlayerController {
    @Resource
    PlayerFeign playerFeign;
    @RequestMapping("players")
    public List<Players> queryplayers(@RequestParam("team_id") int teamId){
        return playerFeign.queryplayers(teamId);
    }
}
